#include "math_util.h"

double randdouble(double max) {
    return max * double(rand()) / double(RAND_MAX);
}

double randdouble(double min, double max) {
    return min + (max - min) * double(rand()) / double(RAND_MAX);
}
